//
//  HomeCouponViewController.h
//  OrderSeat
//
//  Created by haiming on 13-10-15.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SelectCircleView.h"
#import "SelectCuisinesView.h"
#import "SelectOrderView.h"

@class CouponListSource;
@interface CouponListViewController : BaseViewController<SelectCuisinesViewDelegate,SelectCircleViewDelegate,SelectOrderViewDelegate>

@property (strong, nonatomic) IBOutlet UIButton *toolButton1;
@property (strong, nonatomic) IBOutlet UIButton *toolButton2;
@property (strong, nonatomic) IBOutlet UIButton *toolButton3;
@property (strong, nonatomic) IBOutlet UIView   *toolsBarView;
@property (strong, nonatomic) IBOutlet UITableView *couponTable;

@property (strong, nonatomic) CouponListSource *dataSource;

- (void)appendTableWith:(NSMutableArray *)data;

@end

@interface CouponListSource : BaseDataSource<UIScrollViewDelegate,UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, assign) int pageNumber;
@property (strong, nonatomic) NSMutableArray *couponList;
@property (nonatomic, strong) CouponListViewController *viewController;

- (void)fetchCouponWithCuisines:(NSString*)cuisinesId circle:(NSString*)circleId order:(NSString *)orderId isLoadMore:(BOOL)isLoadMore;

@end
